<template>
  <div>
    <div class="ticket-item" v-for="(item,index) in list" :key="index">
      <div class="item-title">{{item.title}}</div>
      <div class="item-chilren" v-if="item.children">
        <detail-list :list="item.children"></detail-list>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: {
    list: Array
  },
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="stylus" scoped>
  .item-title
    border-bottom 1px solid #eee
    line-height: .8rem
    font-size: .32rem
    padding: 0 .2rem

  .item-chilren
    padding: 0 .2rem
</style>
